﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>最佳女王瑜伽培训--管理系统</title>
    <link href="/styles/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/js/lib/jquery.js"></script>
    <script src="/js/lib/bootstrap.js"></script>
    <script src="/js/lib/angular.js"></script>
    <script src="/js/app/Site.js"></script>

    <style>
        .navbar-default {
            background-color: #359203;
            border-color: #e7e7e7;
            padding: 10px 0px;
            margin-bottom: 0px;
        }

            .navbar-default .navbar-nav > li {
                padding: 0px 0px;
            }

                .navbar-default .navbar-nav > li > a {
                    color: #fff;
                }

                    .navbar-default .navbar-nav > li > a:hover {
                        color: #ff6a00;
                    }

            .navbar-default .navbar-nav > .active > a,
            .navbar-default .navbar-nav > .active > a:hover,
            .navbar-default .navbar-nav > .active > a:focus {
                color: #E5F517;
                background-color: #359203;
            }

            .navbar-default .navbar-brand {
                color: #fff;
                float: left;
                height: 50px;
                padding: 15px 15px;
                font-size: 30px;
                line-height: 20px;
            }

                .navbar-default .navbar-brand:hover {
                    color: #fff;
                }
				.myA{}
				.myA:hover，.myA:visited{color:#fff!important;cursor:default;}
    </style>
</head>
<body>
    <nav class="navbar navbar-default navbar-shiguang navbar-static-top" data-nav="#abouts">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" aria-expanded="false" data-target=".navbar-collapse">
                    <span class="sr-only">导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="">最佳女王瑜伽培训--管理系统</a>

            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-respond">
                    <li id="nav1" class="nav active"><a href="/admin/index">网站模块配置 </a></li>
                    <li id="nav2" class="nav"><a href="/admin/product">作品集图片</a></li>
                    <!-- <li id="nav4" class="nav"><a href="/admin/navitem">菜单模块管理</a></li> -->
                    <!-- <li id="nav3" class="nav"><a href="/admin/inedx_back">轮播图片管理</a></li> -->
                    <li id="nav5" class="nav"><a href="/admin/leaveMessages">留言信息</a></li>
                    <!-- <li id="nav6" class="nav"><a href="/admin/registUserList">注册用户</a></li> -->
                </ul>
                <ul class="nav navbar-nav navbar-right" >                    
                    <li><a href="##" class="myA"><span class="glyphicon glyphicon-user"></span>&nbsp;<span id="username"></span></a></li> 
					<li><a href="/admin/login" id="loginOut"><span class="glyphicon glyphicon-off" title="退出登录"></span></a></li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container-fluid" style="background:#fff; padding-bottom:30px; padding-top:0px;">
        <section>
            <%-body -%>
        </section>
    </div>

    <script type="text/javascript">
	    function getCookie(c_name)
		{
		if (document.cookie.length>0)
		  {
		  c_start=document.cookie.indexOf(c_name + "=")
		  if (c_start!=-1)
			{ 
			c_start=c_start + c_name.length+1 
			c_end=document.cookie.indexOf(";",c_start)
			if (c_end==-1) c_end=document.cookie.length
			return unescape(document.cookie.substring(c_start,c_end))
			} 
		  }
		return ""
		}
		
		
	
        $(function () {
			$("#username").text(getCookie("username"));			
			
            var url = window.location.href;
            $(".nav").removeClass("active");
            if (url.indexOf("admin/product") > 0) { $("#nav2").addClass("active"); return; }
            if (url.indexOf("admin/news") > 0) { $("#nav3").addClass("active"); return; }
            if (url.indexOf("admin/navitem") > 0) { $("#nav4").addClass("active"); return; }
            if (url.indexOf("admin/leaveMessages") > 0) { $("#nav5").addClass("active"); return; }
            if (url.indexOf("admin/registUserList") > 0) { $("#nav6").addClass("active"); return; }
            $("#nav1").addClass("active");
			
			
			
        });
    </script>
</body>
</html>
